]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyring: Don't use setButtons
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 21 Dec 2012 16:04:57 +0000 (11:04 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 26 Dec 2012 03:18:42 +0000 (22:18 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=690594

js/ui/components/keyring.js

index ef53c0b42a847d3ddd3de36a0bfbc250d33e368b..74c9c382c3732b870b035a15f9821099d2229055 100644 (file)
@@ -60,18 +60,14 @@ const KeyringDialog = new Lang.Class({
 
         this._controlTable = null;
 
-        let buttons = [{ label: '',
-                         action: Lang.bind(this, this._onCancelButton),
-                         key:    Clutter.Escape
-                       },
-                       { label: '',
-                         action: Lang.bind(this, this._onContinueButton),
-                         default: true
-                       }]
-
-        this.setButtons(buttons);
-        this._cancelButton = buttons[0].button;
-        this._continueButton = buttons[1].button;
+
+        this._cancelButton = this.addButton({ label: '',
+                                              action: Lang.bind(this, this._onCancelButton),
+                                              key: Clutter.Escape });
+        this._continueButton = this.addButton({ label: '',
+                                                action: Lang.bind(this, this._onContinueButton),
+                                                default: true },
+                                              { expand: true, x_fill: false, x_align: St.Align.END });
 
         this.prompt.bind_property('cancel-label', this._cancelButton, 'label', GObject.BindingFlags.SYNC_CREATE);
         this.prompt.bind_property('continue-label', this._continueButton, 'label', GObject.BindingFlags.SYNC_CREATE);